<!-- 网页头部 -->
{{ define "base/base_header.html" }}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
{{ end }}


<!-- 引用css/js部分 -->
{{ define "base/base_import.html"}} 
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="/static/css/reset.css">
	<link rel="stylesheet" type="text/css" href="/static/css/main.css">
	<script type="text/javascript" src="/static/js/jquery-1.12.4.min.js"></script>
	<script type="text/javascript" src="/static/js/jquery-ui.min.js"></script>
	<script type="text/javascript" src="/static/js/slide.js"></script>
{{ end }}


<!-- 导航栏 -->
{{ define "base/base_top.html" }}
	<div class="header_con">
		<div class="header">
			<div class="welcome fl">欢迎来到天天生鲜!</div>
			<div class="fr">
				{{ if .IsActive }}
				<div class="user_link fl">
					欢迎您：<em>{{ .Name }}</em>
					<span>|</span>
					<a href="/ttsx/user/logout">退出</a>
				</div>
				{{ else }}
				<div class="user_link fl">
					<a href="/ttsx/user/login">登录</a>
					<span>|</span>
					<a href="/ttsx/user/register">注册</a>
				</div>
				{{ end }}
				<div class="user_link fl">
					<span>|</span>
					<a href="/ttsx/user/user_center_info">用户中心</a>
					<span>|</span>
					<a href="/ttsx/cart/select">我的购物车</a>
					<span>|</span>
					<a href="/ttsx/user/user_center_order/1">我的订单</a>
				</div>
			</div>
		</div>		
	</div>
{{ end }}


<!-- 网页底部 -->
{{ define "base/base_bottom.html" }}
	<div class="footer no-mp">
		<div class="foot_link">
			<a href="#">关于我们</a>
			<span>|</span>
			<a href="#">联系我们</a>
			<span>|</span>
			<a href="#">招聘人才</a>
			<span>|</span>
			<a href="#">友情链接</a>		
		</div>
		<p>CopyRight © 2016 北京天天生鲜信息技术有限公司 All Rights Reserved</p>
		<p>电话: 010-****888    京ICP备*******8号</p>
	</div>
{{ end }}